package com.thjk.bdf.preloan.web.enums;

public enum UserTrajectoryLogCode {
	
	//行为类别
	TYPE_LOGIN("1","进入页面"),
	TYPE_CLICK("2","点击按钮/链接"),
	TYPE_INNER_VALIDATE("3","内部校验"),
	TYPE_INNER_REQ("4","内部请求"),
	TYPE_OUTER_REQ("5","外部请求"),
	//行为编码
	ACTIONCODE_LOGIN("100001","进入登录页面"),
	ACTIONCODE_FORGETPASSWORD("100002","进入重置密码页面"),
	ACTIONCODE_ENTERACCOUNTHLB("100003","进入好老板快快贷首页"),
	ACTIONCODE_TOPENDINGLOAN("100004","进入放款中或放款成功页面"),
	ACTIONCODE_CONFIRMIDENINFO("200001","点击确认证件信息按钮"),
	ACTIONCODE_COMMITIDENINFO("200002","点击上传证件信息提交按钮"),
	ACTIONCODE_COMMITBANKINFO("200003","点击银行卡实名认证提交按钮"),
	ACTIONCODE_VERIFY3KEYS("400001","万鉴通本人本卡三要素校验"),
	ACTIONCODE_VERIFYLAWXP("400004","汇法校验"),
	ACTIONCODE_VERIFYTONGDUN("400005","同盾校验"),
	ACTIONCODE_VERIFYBAIRONG("400006","百融校验"),
	ACTIONCODE_VERIFYFICO("400008","FICO信用分"),
	ACTIONCODE_VERIFYCREDIT("400009","工商校验"),
	ACTIONCODE_SENDSMSMSG("400011","发送短信验证码"),
	ACTIONCODE_CUSTOMERLOGIN("400012","统一账户注册&登录"),
	ACTIONCODE_CUSTOMERINFOQUERY("400013","客户信息查询"),
	ACTIONCODE_CUSTOMERINFOUPDATE("400014","客户信息修改"),
	ACTIONCODE_CUSTOMERINFOCHECK("400015","客户信息校验"),
    //校验行为结果
	CHECKRESULT_PASS("1","通过"),
	CHECKRESULT_NOTPASS("0","不通过");
	
	private String code;
	private String message;
	
	UserTrajectoryLogCode(String code,String message) {
		this.code = code;
		this.message = message;
	}
	
	
	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getMessage() {
		return message;
	}


	public void setMessage(String message) {
		this.message = message;
	}
	
	
	public static UserTrajectoryLogCode getMasRetCode(String value) {
		if (value != null) {
			for (UserTrajectoryLogCode retCodeEnum : values()) {
				if (retCodeEnum.getCode().equals(value)) {
					return retCodeEnum;
				}
			}
		}
		return null;
	}

}
